import './assets/main.css'
// 暗黑模式
import 'element-plus/theme-chalk/dark/css-vars.css'
import './styles/dark/css-vars.css'

import { createApp } from 'vue'
import { createPinia } from 'pinia'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import App from './App.vue'

import router from "@/router";
import { setupDirective } from '@/directive';
// 中英文
import 'element-plus/theme-chalk/dark/css-vars.css'
import i18n from '@/language/index'
import zhCn from 'element-plus/es/locale/lang/zh-cn'

createApp(App).use(i18n)
const app = createApp(App);
// 全局注册 自定义指令(directive)
setupDirective(app);

app.use(ElementPlus, {
    locale: zhCn,
})
app.use(createPinia())
app.use(router)

app.mount('#app')
